<div class="main form">
<?php
	$fieldsForButton = Configure::read('emailConfig.Buttonset.'.$emailTemplate['EmailTemplate']['name']);
	$subject = str_replace('siteName',cr('cmsConfig.Backend.siteName'),$this->data['EmailTemplate']['subject']);
	echo $form->create('EmailTemplate',array('url'=>'/'.$this->params['url']['url']));
	echo $form->input('subject',array('value'=>$subject));
	?>
<div class="edit_template">
	<?php
		echo $form->input('body_html', array('type'=>'textarea', 'buttons'=>array('plugin'=>null,'model'=>null,'fields'=>$fieldsForButton)));
	?>
	</div>

	<?php echo $form->end(__('Submit'));?>
</div>